//
//  TLEngine.h
//  WebViewPreload
//
//  Created by Tianlong on 2018/2/17.
//  Copyright © 2018年 tianlong. All rights reserved.
//  网络请求的发起者,对TLConnection又包装了一层

#import <Foundation/Foundation.h>
#import "TLConnection.h"

#define HTTPHeaderKeyContentType @"Content-Type"

@interface TLEngine : NSObject
@property (weak, nonatomic) id<TLEngineDelegate> delegate;
@property (copy, readonly, nonatomic) NSString *htmlString;
@property (strong, readonly, nonatomic) NSMutableData *responseData;

- (instancetype)initWithUrl:(NSString *)url delegate:(id<TLEngineDelegate>) delegate delegateQueue:(NSOperationQueue *) queue;
- (void)start;
- (void)stop;
@end
